package com.atguigu3.dao;

import com.beans.Customers;

import java.sql.Connection;
import java.sql.Date;
import java.util.List;

/**
 * 此接口用于规范针对于customers表的常用操作
 * @auther user
 * @date 2021/12/10 - 1:19
 */
public interface CustomersDao {
    //添加
    void inert(Connection connection, Customers customers);
    //删除
    void deleteById(Connection connection, int id);
    //更新
    void updateById(Connection connection, Customers customers);
    //查询
    Customers getCustomersById(Connection connection, int id);
    //查询 返回list
    List<Customers> getAll(Connection connection);
    //查询 count(*)
    Long getCount(Connection connection);
    //查询最大生日
    Date getMaxBirth(Connection connection);

}
